#
# Makefile for the photon kernel.
#

CPPFLAGS_photon.lds := -DTEXT_OFFSET=$(TEXT_OFFSET)
AFLAGS_head.o        := -DTEXT_OFFSET=$(TEXT_OFFSET)

# Object file lists.

obj-y := setup.o irq.o processor.o traps.o cpu.o smp.o irqchip.o isr1.o

obj-y += irqchip/

ifeq ($(CONFIG_CPU_CORTEX_M), y)
   head-y			:= head.o
endif

ifeq ($(CONFIG_CPU_CORTEX_R), y)
   head-y			:= head_v7r.o
endif

extra-y := $(head-y) photon.lds
